package com.hu.video.mapper;

import com.hu.video.entity.SocialVideoLike;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface SocialVideoLikeMapper {
    int insertLike(SocialVideoLike like);
    int deleteLike(@Param("videoId") Long videoId, @Param("userId") Long userId);
    int countLikes(@Param("videoId") Long videoId);
    SocialVideoLike selectByVideoAndUser(@Param("videoId") Long videoId, @Param("userId") Long userId);
} 